import request from '@/utils/request'

// 查询人员,车辆检查点工作及里程统计列表
export function listCheckPoint(query) {
  return request({
    url: '/report/checkPoint/list',
    method: 'get',
    params: query
  })
}

// 查询人员,车辆检查点工作及里程统计详细
export function getCheckPoint(reportPointId) {
  return request({
    url: '/report/checkPoint/' + reportPointId,
    method: 'get'
  })
}

// 新增人员,车辆检查点工作及里程统计
export function addCheckPoint(data) {
  return request({
    url: '/report/checkPoint',
    method: 'post',
    data: data
  })
}

// 修改人员,车辆检查点工作及里程统计
export function updateCheckPoint(data) {
  return request({
    url: '/report/checkPoint',
    method: 'put',
    data: data
  })
}

// 删除人员,车辆检查点工作及里程统计
export function delCheckPoint(reportPointId) {
  return request({
    url: '/report/checkPoint/' + reportPointId,
    method: 'delete'
  })
}
